package com.phynos.web.manager.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.phynos.web.manager.ui.component.UISidebarMenu;


@Controller
@RequestMapping("/")
public class IndexController extends BaseViewController {
			
	@RequestMapping("/")
	public String getIndex(){
		return "redirect:/index1";
	}
	
	@RequestMapping("/index")
	public String getIndexView(
			ModelMap map
			){
        UISidebarMenu nav = getNav();
        nav.setActive(0,0);
		map.put("nav", nav);
		return "index1";
	}	
		
}
